package cate.game.role.res.guild.po.envelope;

import cate.game.role.Role;
import cate.game.role.show.frame.HeadFrameVO;
import cate.game.role.show.icon.HeadIconVO;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "抢到红包的成员")
public class GuildEnvelopeMemberPO {
    @NoteField(value = "抢到红包的成员ID")
    public String uid;

    @NoteField(value = "抢到红包的成员姓名")
    public String name;

    @NoteField(value = "头像")
    public HeadIconVO headIcon;

    @NoteField("头像框")
    public HeadFrameVO headFrame;

    @NoteField("角色等级")
    public int level;

    @NoteField(value = "抢到红包的金额")
    public int amount;

    @NoteField(value = "抢红包的时间")
    public long time;

    public GuildEnvelopeMemberPO() {
    }

    public GuildEnvelopeMemberPO(Role role, int amount) {
        this.uid = role.getUid();
        this.name = role.getBase().name;
        this.headIcon = role.getBase().headIcon;
        this.headFrame = role.getBase().headFrame;
        this.amount = amount;
        this.level = role.getBase().level;
        time = System.currentTimeMillis();
    }
}
